CC=g++
CFLAGS=-c -Wall -std=gnu++0x -D_THREAD_SAFE 
LDFLAGS=
INCLUDE=data.h 
SOURCES=colliding-trains.cpp train.cpp impl.cpp railway.cpp route.cpp 
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=colliding-trains

all: $(SOURCES) $(EXECUTABLE)
		
$(EXECUTABLE): $(OBJECTS) 
	$(CC) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

